html {
    overflow: hidden;
}

body {
    display: grid;
    grid-template-rows: min-content auto;
}

body.noSession {
    grid-template-rows: auto;
}

body.edit {
    position: relative;
    overflow: hidden;
    grid-template-rows: min-content min-content 1fr;
}

p {
    padding: 6px;
}

h1,
h2 {
    padding-left: 6px;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
}

pre {
    padding: 6px;
}

#unsupported {
    display: none;
}

.unsupportedBrowser #unsupported {
    display: block;
}

.unsupportedBrowser #header-bar,
.isNotAdmin.inSpecification #header-bar {
    display: none;
}

.unsupportedBrowser #wrapper {
    display: none;
}

.unsupportedBrowser h1 {
    margin: 0px;
    padding: 9px;
}

.unsupportedBrowser h2,
.unsupportedBrowser p,
.unsupportedBrowser ul,
.unsupportedBrowser li {
    padding: 6px;
}

.unsupportedBrowser ul {
    list-style-type: square;
    list-style-position: inside;
}

.unsupportedBrowser #moduleToolbox {
    display: none;
}

#header-bar {
    grid-row: 1;
    padding: 0px 24px;
}

.pageNotEditable #header-bar {
    padding: 0px 10px;
}

#section-name {
    line-height: 56px; /* Must be the same height as the container for vertical centering */
    margin-left: 10px;
}

#logout-text {
    float: right;
    line-height: 56px;
}

#settings-container {
    float: right;
    width: 56px;
    height: 56px;
    text-align: center;
    border-radius: 0px 0px 0px 20px;
}

#settings-link {
    display: block;
    width: 100%;
    height: 100%;
}

#settings-image {
    margin: 4px auto;
}

/* Wrapper */
#wrapper {
    grid-row: 2;
    overflow: auto;
    display: grid;
    grid-template-rows: max-content auto;
}

body.noSession #wrapper {
    grid-row: auto;
    grid-template-rows: auto;
}

body.edit #wrapper {
    grid-row: 3;
    display: block;
}

/* Form Size */
.formSize {
    position: absolute;
    z-index: -10000;
}

body.edit .formSize,
body.noSession .formSize {
    display: none;
}

.dwFormContainer {
    display: grid;
}

/* Specification Navigation */
#metro-navigation-container {
    width: 100%;
    text-align: center;
}

.form-navigation-link,
.form-navigation-link-disabled {
    display: inline-block;
    width: 150px;
    height: 50px;
    margin: 5px 0px 5px 5px;
    line-height: 50px; /* Should be the same as the height for vertical alignment */
    text-align: center;
    overflow: auto;
    word-wrap: break-word;
}

.form-navigation-link-disabled {
    cursor: default;
}

/* Specification Tasks */
#specificationTaskList {
    width: 100%;
    padding: 5px;
}

#specificationTaskList h2 {
    margin: 0px;
}

.specTaskListMessage {
    border-left: 4px solid;
    margin: 3px 0px;
    padding: 3px 10px;
}

/* Overwrite module specific styles for this Skin */
#moduleToolbox {
    grid-row: 2;
}

.mdl-module-editable {
    border: none;
}

/* override for toolbar borders and bg */
.mdl-module-edit-toolbar {
    border: none;
    background-image: none;
}

#specificationFormContainer {
    margin: 0 auto;
    position: relative;
}

#specificationBackground {
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
}

#specificationForm {
    width: 100%;
    height: 100%;
}

/* getting rid of unsightly borders on module drag and drop toolbox */
.mdl-module-container {
    border: none;
    max-width: 960px;
    margin: 0 auto;
}

/* misc changes for css segregation porpoises */
#moduleToolbox,
.details-heading,
.details-text {
    min-height: 250px;
}
